<?php
function dbconnect(){
//Connect to database from here
	//$link = mysql_connect('localhost', 'webuser', 'webuser');
	$link = mysql_connect('localhost','jameskli_webuser','webuser');
	if (!$link) {
		die('Could not connect: ' . mysql_error());
	}
	$db_selected = mysql_select_db('jameskli_blog', $link);
     /*elect the database | Change the name of database from here
	mysql_select_db('studentconnect');*/
	if (!$db_selected) {
   		 die ('Can\'t use student connect database : ' . mysql_error());
	}
}



?>